<?php

use Illuminate\Database\Seeder;
use App\Models\Renting;
class RentingSeeder extends Seeder
{
    //执行填充运行的代码
    public function run()
    {
        //清空表
        Renting::truncate();
        //创建10个租客数据
        factory(Renting::class,10)->create();
    }
}
